<?php if( !empty ($this->arrHotVideo) || !empty ($this->arrHotPhoto)){?>
<div class="main_content_box">
    <div class="tab_video">
        <ul>
            <li class="active" id="box_2"><a href="javascript:" onclick="changebox(2);">Video Clip mới</a></li>
            <li id="box_3"><a href="javascript:" onclick="changebox(3);">Ảnh Hot</a></li>
        </ul>
    </div>
    <div class="content_box_video">
        <div id="box_slide_video">
            <div id="slides_video">
                <div class="slides_container">
                    <div id="box_video_home">
                    <?php if( !empty ($this->arrHotVideo) ){
                        foreach ($this->arrHotVideo as $objvideo){
                        ?>
                    <ul>
                        <?php foreach ($objvideo as $video){?>
                        <li>
                            <div class="block_image_thumb">
                                <a href="<?php echo $this->Articleurl($video); ?>" title="video name"><img src="images/graphics/img_155x116.jpg" alt="" />
                                    <span class="icon_play">&nbsp;</span> </a>
                            </div>

                            <h2>
                                <a href="<?php echo $this->Articleurl($video); ?>" class=""><?php echo $video["title"];?> </a>
                            </h2>
                        </li>
                        <?php } ?>
                    </ul>
                    <?php } } ?>
                    </div>
                </div>
            </div>
        </div>
        <div id="box_slide_photo" style="display: none;">
            <div id="slides_video">
                <div class="slides_container">
                    <?php if( !empty ($this->arrHotPhoto) ){
                        foreach ($this->arrHotPhoto as $objphoto){
                        ?>
                    <ul>
                        <?php foreach ($objphoto as $photo){?>
                        <li>
                            <div class="block_image_thumb">
                                <a href="<?php echo $this->Articleurl($photo); ?>" title="video name"><img src="images/graphics/img_155x116.jpg" alt="" />
                                    <span class="icon_play">&nbsp;</span> </a>
                            </div>

                            <h2>
                                <a href="<?php echo $this->Articleurl($photo); ?>" class=""><?php echo $photo["title"];?> </a>
                            </h2>
                        </li>
                        <?php } ?>
                    </ul>
                    <?php } } ?>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    /* change box video, photo */
    function changebox(obj){
        $("#box_"+ obj).addClass("active");
        if( obj == 2 ){
            $("#box_3").removeClass();
            $("#box_slide_video").show();
            $("#box_slide_photo").hide();
        }else{
            $("#box_2").removeClass();
            $("#box_slide_video").hide();
            $("#box_slide_photo").show();
        }
    }
</script>
<?php } ?>